package com.stq.toutiao.model.request;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * 获取access_token的请求参数
 *
 * @author stqsht@163.com
 * @date 2020-01-26 10:30
 */
public class TouTiaoAccessTokenParam implements Serializable {

    /**
     * 小程序 ID
     */
    private String appid;
    /**
     * 小程序的 APP Secret，可以在开发者后台获取
     */
    private String secret;
    /**
     * 获取 access_token 时值为 client_credential
     */
    @JSONField(name = "grant_type", defaultValue = "client_credential")
    private String grantType;

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getGrantType() {
        return grantType;
    }

    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }
}
